﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShowRoom.admin
{
    public partial class AdminMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "Quản trị site show room my pham";
            if (Session["user_id"] == null || Session["userId"] == "")
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                hplHoanNgenh.Text = Session["iUserName"].ToString();
            }
            string user_id = Session["user_id"].ToString();
            hplHoanNgenh.Style["cursor"] = "pointer";
            hplHoanNgenh.Attributes.Add("onclick", "EditUsers('" + user_id + "')");
        }

        protected void lkLogOut_Click(object sender, EventArgs e)
        {
            Session["iUserName"] = "";
            Session["user_id"] = "";
            Response.Redirect("login.aspx");
        }
    }
}